package com.shuai.utils;

/**
 * 响应类型的枚举
 */
public enum ResultCode {
    SUCCESS(200, "操作成功"),
    ERROR(500, "操作失败"),
    CHECKERROR(500, "用户账号或手机号重复，验证号失败"),
    SUBPROJECTERROR(500, "子项目的名字不能重复"),
    TASKNAMEERROR(500, "同一子项目中任务的名称不能重复");

    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}